Directing camera behavior in 3-D imaging system

ABSTRACT

A method of associating a computer generated camera with an object in a three-dimensional computer generated space. The method receives a command to associate the camera with an object in the simulated space. Based on the command the method determines a path for moving the camera to a position near the object and aiming the camera at the object. The method creates a video from the simulated camera&#39;s perspective of the three-dimensional simulated space.

FIELD OF THE INVENTION

The invention is directed towards compositing images in a simulatedspace. Specifically, this invention is directed toward a method ofsimplifying the task of setting up the motions of a simulated camera ina simulated space.

BACKGROUND OF THE INVENTION

Digital graphic design, video editing, and media-editing applicationsprovide designers and artists with the necessary tools to create much ofthe media seen today through the various media outlets. These toolsallow designers the ability to generate, compose, composite, and animatethe images and videos in a virtual digital space. In the progression ofthese tools, the virtual digital space has gone from flattwo-dimensional (2D) spaces to three-dimensional (3D) spaces.

A computer simulating the space is also able to calculate an image ofthe space as seen from a particular point in the three-dimensionalspace, looking in a particular direction, and with a particular field ofview (such a calculation is sometimes called “rendering”). Someapplications define a virtual camera at that particular point (thelocation of the virtual camera), pointing in that particular direction(the orientation of the virtual camera), and spanning that particularfield of view. A virtual camera can be moved around thethree-dimensional space and re-oriented. When the image of the scene isrendered, objects within the field of view are shown in the renderedimage, while objects outside the field of view are not seen in therendered image.

A 3D space provides designers with capabilities not previously availablewithin a 2D space. Designers now have the ability to fly virtual camerasthroughout the 3D space, adding depth to render more complexenvironments. Also, the added third dimension provides designers with amuch larger workspace with which to work. Objects such as images,videos, text, shapes, cameras, lights, spatial audio, etc. can belocated anywhere in any dimension of the 3D space

Objects in the 3D space of such applications have locations (sometimescalled “positions”) and orientations (also called “direction”) which maychange over time. The simulated camera of such applications is generallymovable, both in position and orientation. The position, orientation,and field of view of such a camera determines which objects are in thefield of view of the camera in the simulated scene and what angles theobjects are viewed from. The location determines where the camera is,the orientation represents which way the camera is pointing. Given alocation and an orientation (direction the camera is pointing), thefield of view determines how much of the scene that surrounds thedirection the camera is pointing will be captured by the camera. Thewider the field of view, the more of the scene it will capture and thesmaller any individual object will appear in the rendered output.

In the prior art, changes in the location, orientation, and field ofview of the camera over set durations and the positions and movements ofthe objects in the scene over such set durations were independent ofeach other. A camera could be ordered to relocate, but not to relocateover a set duration relative to a particular object. This meant that auser of the prior art had to determine what movements, reorientationsand changes of field of view of the camera were necessary to providewhatever views of the objects he wanted, and then program the cameramovement accordingly. This left a further layer of complexity to settingup a scene beyond moving the objects, especially since each change inthe motion of an object meant that the motion and changes of othercamera parameters had to be determined again by the user. Therefore,there is a need for a system that automatically positions a camerarelative to a given object and keeps that object framed as the objectmoves.

SUMMARY OF THE INVENTION

Some embodiments provide a method of allowing a user to associate asimulated camera with one or more objects in a computer generatedthree-dimensional space for a duration during which the camera will keepthe object in its field of view. The computer generatedthree-dimensional space of some embodiments includes two- andthree-dimensional graphical objects (e.g., video clips, images, text,and/or other graphical objects) at various locations in the space. Themethod can produce a set of images (e.g., a video clip) by rendering thespace from a particular field of view at a particular location andorientation. Some embodiments define a virtual camera to represent theparticular field of view, location, and orientation from which the spacecan be rendered. Some embodiments allow one or more of the virtualcamera's parameters (i.e., its field of view, location, and/ororientation) to change over time; in other words, some embodiments allowthe camera's field of view, position and/or orientation to change overtime. Some embodiments provide the use of multiple cameras to produceone or more scenes by capturing one or more renderings from one or morefields of view, locations, and orientations.

In associating a camera with an object, some embodiments allow aduration to be defined during which the camera will keep the object inits field of view. For instance, when an object moves, some embodimentsmove the camera along with the object in order to keep the object atleast partially in the camera's field of view. Also, some embodimentsmove a camera to keep a particular face of a rotating object at leastpartially in the camera's field of view. In case a camera is notcapturing a particular object before the start of the duration in whichit should, some embodiments modify one or more parameters of the camera(e.g., modify its field of view, location, and/or orientation) so thatthe camera is capturing a desired portion or all of the object at thestart of the duration. At each instant in time, a camera's field of viewand distance from the object specify how the camera “frames” the objectat that instant. In some embodiments, how a camera frames an object ineach instant in time during a specified duration can be modified.

Some embodiments allow a camera to be associated with two or moreobjects at two or more instances in time. In such a situation, thecamera keeps one object in its field of view for the duration specifiedfor that object, then moves on to keep the next object in its field ofview. When the camera is commanded to frame multiple objects, someembodiments can receive multiple starting times and multiple durationsfor moving the simulated camera to the multiple objects. When one timesetting overlaps with the next time setting, some embodiments generate acompromise path for the simulated camera.

Other embodiments provide other behaviors. For example, some embodimentsprovide controls that allow a user to assign one or more behaviors to acamera for some duration, and modify any behaviors assigned to thecamera. In some embodiments, such behaviors include “dolly” (e.g., movealong a set path over the duration), “sweep” (e.g., change theorientation of the camera without changing its position or keep thecamera pointing at a particular location in the 3D space as the camerarevolves about that point), “zoom” in or out (e.g., narrow or widen thefield of view). Some embodiments provide behaviors that associate acamera with an object or a group of objects (like the framing behaviordescribed above). For example, a “dolly zoom” comprises moving thecamera while changing the focus of the camera such that a particularobject or group of objects stays the same apparent size in the field ofview while other objects behind it appear to change size.

BRIEF DESCRIPTION OF THE DRAWINGS

The novel features of the invention are set forth in the appendedclaims. However, for purpose of explanation, several embodiments of theinvention are set forth in the following figures.

FIG. 1 illustrates a view of an active workspace window 110 of a 3Dspace within a 3D editing application.

FIG. 2 illustrates a process of some embodiments for associating avirtual camera with a virtual object.

FIG. 3 illustrates an example of a 3D simulation application of someembodiments.

FIG. 4 illustrates a camera control panel.

FIG. 5 illustrates a timeline and timeline controls.

FIGS. 6 a-6 d illustrate multiple renderings of the same set of objectsfrom multiple locations, orientations, and fields of view as time withinthe scene passes.

FIG. 7 illustrates camera framing.

FIG. 8 illustrates a tool of some embodiments for setting a framingoffset.

FIG. 9 illustrates the framing process of some embodiments.

FIG. 10 illustrates a process of some embodiments for implementing aframing behavior while rendering a scene.

FIG. 11 illustrates the framing controls of some embodiments.

FIGS. 12-14 illustrate an exemplary application with a targeted objectand the effects of various adjustments of the framing behavior.

FIG. 15 illustrates an embodiment for determining a camera path.

FIGS. 16-21 illustrate the framing of multiple objects.

FIGS. 22-25 illustrate the framing of a moving object.

FIGS. 26-27 illustrate the effect of overlapping framing behaviors onthe path of the camera.

FIG. 28 illustrates a set of controls of some embodiments for assigningvarious behaviors to a camera.

FIG. 29 illustrates the motion of a camera during the duration of adolly behavior and the effects of that motion on the rendered image.

FIG. 30 illustrates the rotation of a camera during the duration of asweep behavior and the effects of that motion on the rendered image.

FIG. 31 illustrates an alternate sweep behavior of some embodiments.

FIG. 32 illustrates the changing of the field of view of a camera andthe effects of that change on the rendered image.

FIG. 33 illustrates the changing of the field of view and position of acamera and the effects of that change on the rendered image.

FIG. 34 illustrates a computer system with which some embodiments of theinvention are implemented.

DETAILED DESCRIPTION OF THE INVENTION

In the following description, numerous details are set forth for purposeof explanation. However, one of ordinary skill in the art will realizethat the invention may be practiced without the use of these specificdetails. For instance, the techniques described below are described in aspecified order, but other embodiments may change the order of theoperations while still embodying the current invention.

I. Overview

Some embodiments provide a video compositing application. Such anapplication provides tools (e.g. graphical user interface tools) toallow a user to command that application to set up and make a compositemedia clip of one or more images, sounds, video clips, or other two- andthree-dimensional graphical objects (e.g., video clips, images, text,and/or other graphical objects) at various locations. The applicationsof some embodiments provide tools that allow a user to apply a behaviorto a camera, e.g. to associate a simulated camera with one or moreobjects in a computer generated three-dimensional space. Section IVbelow describes several exemplary behaviors.

FIG. 1 illustrates an example of one such computer generatedthree-dimensional space. This figure shows a computer generatedthree-dimensional space 110 that includes an image 120, a video clip125, and a text object 127. It also includes a virtual camera 130, whichrepresents a field of view (illustrated by field of view indicator 135),a location 137, and an orientation from which a video clip of the scenecan be rendered. For illustrative purposes, FIG. 1 shows the field ofview indicator 135 as a wireframe that spreads out from the camera 130for a distance 140, even though the field of view extends to theboundaries of the space. In some embodiments, objects in the same planeas the end of the wireframe will be rendered in proportion to theirrelative size in the wireframe. In the example illustrated in FIG. 1,the field of view captures the video clip 125. Hence, the video cliprendered from the field of view, the location 137, and the orientationrepresented by camera 130 would show the video clip 125 for a durationof time (assuming that image stays in the field of view during theduration of time). The rendered video clip would also show any otherobjects that fall within the camera's field of view.

Some embodiments allow one or more of the virtual camera's parameters,i.e., its field of view (sometimes called “angle of view”), location(sometimes called “translation”), and/or orientation (in someembodiments orientation comprises the amount of rotation of an objectwith respect to a reference axis, accordingly, orientation is sometimescalled “rotation”) to change over time; in other words, some embodimentsallow the camera's field of view, position and orientation to changeover time. Some embodiments provide the use of multiple cameras toproduce one or more scenes by capturing one or more renderings from oneor more fields of view, locations and orientations.

In associating a camera with an object, some embodiments allow aduration to be defined during which the camera will keep the object inits field of view. For instance, when an object moves, some embodimentsmove the camera along with the object in order to keep the object atleast partially in the camera's field of view. Also, some embodimentsmove a camera to keep a particular face of a rotating object at leastpartially in the camera's field of view. In case a camera is notcapturing a particular object before the start of the duration in whichit should, some embodiments modify one or more parameters of the camera(e.g., modify its field of view, location, and/or orientation) so thatthe camera is capturing a desired portion or all of the object at thestart of the duration. At each instant in time, a camera's field of viewand distance from the object specify how the camera “frames” the objectat that instant. In some embodiments, how a camera frames an object ineach instant in time during a specified duration can be modified.

Some embodiments allow a camera to be associated with two or moreobjects at two or more instances in time. In such a situation, thecamera keeps one object in its field of view for the duration specifiedfor that object, then moves on to keep the next object in its field ofview. When the camera is commanded to frame multiple objects, someembodiments can receive multiple starting times and multiple durationsfor moving the simulated camera to the multiple objects. When one timesetting overlaps with the next time setting, some embodiments generate acompromise path for the simulated camera. In some embodiments, thiscompromise path starts out very close to the earlier path and thengradually shifts to the later path.

FIG. 2 illustrates the process 200 of some embodiments for associating acamera with an object. In some embodiments, a video compositingapplication performs the process. Such an application allows a user toset up a scene (also called a 3D project) in a simulated space (alsocalled a virtual space). The process allows a user to associate a camerawith one or more objects in that scene for a specified duration. Theapplication then (if necessary) moves the camera to the associatedobject(s) and (if the objects move after the camera gets to the object)keeps moving the camera so as to keep the object(s) in the camera'sfield of view for the specified duration.

The process 200 (at 210) allows a user to build scenes by placing itemsin a three-dimensional space. Items in some embodiments include anythingthat can be added to a scene, e.g. objects, cameras, lights, filters,etc. In some embodiments, these items can be given orders to move and/orrotate as the scene progresses.

Once objects have been placed in the scene, the process 200 receives (at220) an order to associate the camera with a particular simulated objectin the virtual space for some user-definable duration. In someembodiments, when a scene is rendered, the parameters defining thecamera change in order to move the camera to a desired position,orientation, and field of view relative to the object and maintain thatposition, orientation, and field of view relative to the object. In someembodiments, the application allows a user to determine what position,orientation, and field of view relative to the object is desired,sometimes called “framing”. See, section III below.

Once a camera has been associated with an object, the process 200 (at230) determines how to move the camera to the desired location andorientation relative to the object. In some embodiments, the way to movethe camera to the object is determined by the application. In someembodiments, the way to move the camera to the object is determined bythe user, and in some embodiments, the application generates a path thata user can then edit. In some embodiments, the user also provides aduration for moving the camera to the object. For example, the cameracan be set to move so that the field of view goes in ten seconds from aninitial position and orientation to one in which the object fills thefield of view and appears head on to the camera.

If the associated object is programmed to move during the user-definedduration in which the camera is framing it, the process 200 alsodetermines (at 240) how to move the camera in order to keep the camerain the desired position and orientation relative to the object for theuser-defined duration. In some embodiments, the camera is kept in thedesired position and orientation relative to the object by moving and/orrotating in a different frame of reference.

Many features of the camera control system of some embodiments aredescribed in the sections below. A description of an exemplary 3Dcompositing application is provided in section II below. Section IIIdescribes framing. Section IV describes other behaviors provided by someembodiments. Section V describes a computer system of some embodimentsfor running the 3D simulation application of some embodiments.

II. 3D Compositing Application

A. Exemplary Application

FIG. 3 illustrates an example of a 3D compositing application of someembodiments. The 3D compositing application 300 provides (1) a maindisplay window 310, (2) an object selection area 320, (3) a file browserarea 330, (4) a camera control panel 340, (5) a set of control icons350, (6) a timeline display area 360 and a timeline control area 370. InFIG. 3, the main display window 310 is displaying objects 380, 385, and390.

The application allows a user to add a new camera, new object, newbehavior, or a new filter using control icons 350. The applicationallows a user to control an existing camera using the camera controlpanel 340, illustrated in more detail in FIG. 4. The camera controlpanel 340 has various controls, including an angle of view control 410that controls the field of view of the camera, controls 420 forrelocating the camera in the 3D space, controls 430 for rotating thecamera, and controls 440 for resealing the field of view of the camera.

The control panel also includes a selection box 450 for determining whatset of coordinates the adjustments of the camera will be adjusted inrelation to. For example, the camera of some embodiments has its owninternal coordinate system that has one axis in the direction that hecamera is looking, one axis that defines the direction of the top of animage in that frame (e.g. the “up” axis of the camera), and a third axisat right angles to those (e.g., directed to one side of the image). Someembodiments also have a global frame of reference. In some embodiments,the global “up” axis is in the direction of the top of the display areafor the three-dimensional space. If the up-axis of the camera is notaligned with a global up-axis (e.g. camera is pointing down at an angle)and the camera is told to rotate around the up axis, it will rotatearound the up-axis of the camera if the local axis (local meaning in thecamera's coordinate system) is selected in selection box 450 and aroundan axis parallel to the global up-axis of the scene if the global axisis selected in selection box 450.

FIG. 5 illustrates timeline 360 and timeline controls 370. The controlsinclude checkboxes 510 for setting whether particular objects will beactive in the scene, these check boxes allow objects to be temporarilydeactivated for various reasons without deleting them and losing anyexisting configurations of the object and their set behaviors. Thetimeline 360 includes object timelines 580, 585, and 590, representing,respectively, the presence of objects 380, 385 and 390 (as shown in FIG.3) in the scene. The timeline 360 also includes a camera timeline 595for a camera with a framing behavior (see section III below).

In some embodiments, different frames of a scene can be viewed in the 3Dsimulated environment of the exemplary application by selecting aparticular frame on the timeline 360. Such scenes can be “played out”,in the setup screen by showing the state of the setup scene duringvarious scene frames in rapid succession. The 3D environment of someembodiments uses “simple” versions of more complex objects, theequivalent of using thumbnails to organize a collection of large images.The simple versions of such embodiments have low processor demand (e.g.with low detail, low resolution, low or no special effects, no shadowsor sharp shadows, etc.). This allows changes to the scene to be viewedwith minimal delay. In some embodiments, a scene can include multipleobjects, cameras, light sources, and anything else that is within the 3Dsimulated environment. In other embodiments, the scene is laid out usingfull quality versions of the objects.

The exemplary application provides tools so that a user can set variousbehaviors (e.g., move left) for items in the scene and can view thescene using the simple versions while determining the best positions,orientations, and movements of the items (such as the objects 120-127 ofFIG. 1). Objects and cameras can change their orientation in space, andmove from one location to another. Objects and cameras can alsosimultaneously move to different positions and rotate.

Once a user is satisfied with the scene laid out using the simplified(or in some embodiments, full quality) objects, the exemplaryapplication allows a user to use a virtual camera to render a video clipof the scene (in some embodiments, this is done one frame at a time).The rendering process comprises determining the locations of the objectsas they go through their set behaviors and using a virtual camera tocreate a “camera's eye” view of the scene as it plays out. The camera'seye view uses the complex objects that the simple versions of theobjects represent. See, subsection II.B. below for further descriptionof rendering a scene from different locations, orientations, and fieldsof view.

In some embodiments, rendering a frame can be very complicated, as itmay involve calculating not just the direct appearance of objects in thecamera's immediate field of view, but also items that affect how theobjects in the field of view look. For example, if the objects havereflective or refractive surfaces, then objects that are not within thecamera's direct field of view may be reflected or refracted in a waythat changes what a camera would “see”. Similarly, in some embodiments,light sources outside of the camera's field of view and shadows of offcamera objects, can affect the color or visibility of objects in thecamera's direct field of view. Some embodiments may even simulate lensflare, which is affected by bright objects in the field of view.

Because of the high computer processing time required by suchcomplications, some embodiments allow rendering at various levels ofdetail, such as lower or higher detail, (e.g. with or withoutreflections, refractions, shadows, etc., and/or skipping specifiedfraction of the frames, etc.) for faster or slower renderings. Though insome embodiments, even a low detail rendering is more detailed than themain display window.

B. Rendering from a Position, Orientation, and Field of View

As described above, the video compositing application of someembodiments renders a scene from some particular position, orientation,and field of view that may change as time passes within a scene. FIGS. 6a-6 d illustrate multiple renderings of the same set of objects frommultiple positions, orientations, and fields of view as time passes in ascene. At the top of each of FIGS. 6 a-6 d, is a stylized view of athree-dimensional space as viewed from above. At the bottom of each ofFIGS. 6 a-6 d, is a stylized view of a rendered image of the scene (e.g.a calculated representation of the objects) from the position,orientation, and field of view represented by the camera in the sceneabove.

In FIG. 6 a, simulated objects 610-612 are within the simulated spaceand are within the field of view of simulated camera 613. Images 614-616of, respectively, objects 610-612 are shown in rendered screen 617. Theimages 614-616 of objects 610-612 are visible in rendered scene 617because objects 610-612 lie within the field of view of the camera asindicated by view lines 618. Images 614-616 are positioned from left toright in the same order as they would appear to someone looking atobjects arranged in that manner from the location of the camera 613.Image 614 is smaller in proportion to images 615 and 616 than object 610is in proportion to objects 611 and 612 because of perspective. In otherwords, because object 610 is farther from the camera than objects 611and 612, the rendered image 614 appears smaller (change in proportionsexaggerated for effect). The time within the scene is shown in clock619.

FIG. 6 b shows the simulated space at a later time within the scene, asshown in clock 619. At that time, object 611 is no longer within thefield of view of the camera 613. Object 612 fills most of the field ofview, with object 610 partly visible to the camera on the left of object612. This is shown in rendered scene 627. In the rendered scene, image624 (based on object 610) peeks out to the left of image 626 (based onobject 612).

FIG. 6 c shows the simulated space at an even later time within thescene, as shown in clock 619. At that time, camera 613 has moved to theupper right of the scene, and re-oriented to point at objects 610-612from a different direction.

The order of the images 634-636 in rendered scene 637 is rearranged fromthe order in rendered scene 617 in accord with changes to the position,orientation, and/or field of view of the camera.

FIG. 6 d shows the simulated space at an even later time within thescene, shown in clock 619. At that time, the field of view has narrowed,as indicated by view lines 648. Because of the narrowed angle of focus,object 612 is no longer in the field of view of camera 613. Because ofthe narrowed field of view, objects 610 and 611 fill a larger fractionof the camera's field of view, as indicated by the large images 644 and645 in rendered scene 647.

III. Framing

A. Framing an Object

Some embodiments provide controls for setting up a camera behavior thatassociates the camera with a particular object and “frames” that object(not to be confused with a frame of video). A camera of some embodimentscan be positioned anywhere and a rendered scene will show any objects inits field of view (that are not blocked by other objects), regardless ofthe orientation of the camera and the object. However, a user may wantto have a particular object “framed” by the camera (e.g. filmed from adesignated “front”, filling a specified portion of the field and“right-side-up”).

FIG. 7 illustrates framing of some embodiments. A camera 710 frames anobject 720, when the camera 710 is (1) pointed at the object 720, (2) isthe correct distance 730 away from the object 720 so that the objectfills a specified portion of the field of view, (3) has the top of thecamera 710 aligned parallel to a specified direction 740, and (4) ispositioned along another specified direction from the object.

In some embodiments, the specified directions are specified relative tothe object (e.g. along an axis of the object or in a direction definedrelative to the axes of the object). In some embodiments, the specifieddirections are defined relative to another object, a group of objects,or a global coordinate system of the 3D space. In some embodiments, whenthe scene is rendered, the end of the framing box (sometimes called a“camera frustum”) 750 represents the size and orientation of a computermonitor on which the rendered scene will be displayed, and the specifiedportion of the field of view is large enough to fit the whole object (orthe whole width or whole height of the object) on the monitor.

In some embodiments, the framing of an object can be offset in aspecified direction and by a specified amount. FIG. 8 illustrates a toolof some embodiments for setting a framing offset. The figure illustratesframing box 800 and framing offset controller 810. Framing offsetcontroller 810 includes a target 805 representing the object 807 to beframed and the surrounding area. The target is framed by a dotted linerepresenting the position of the camera's frame on the object 807. Thedotted line infringes on the right side of the target but not the leftside, indicating that the object will be framed in such a way that theright side of the object 807 will be closer to the edge of the field ofview than the left side of the object. In accord with the framing offsetcontroller 810, the framing box 800 is offset so that the distance 830between the framing box 800 and the right side of the object 807 isshorter than the distance 840 from the framing box 800 to the right sideof the object 807. Some embodiments move and orient the camera toautomatically frame a specified object, as described below.

Some embodiments allow offsets in different directions. A forward offsetwould be a close-up of the object. A backward offset would allow thebackground to be seen around the object. A sideways offset could be usedto place a targeted object in the foreground and have objects in thebackground visible on one side of the object. In film or television,such a technique might be used when an actor and events he is looking atneed to be in the same shot. The actor is on one side of the screen andis looking at events on the other side of the screen and further fromthe camera than the actor.

B. Automatic Framing

The application of some embodiments contains various controls to (1)allow the user to define a camera behavior that targets an object forframing and (2) set a duration of that camera behavior. The framingbehavior commands the camera to go to and frame a target object over thedesignated duration. Some embodiments receive the designation of theobject and the duration for framing the object using separate controls.Some embodiments provide specialized camera framing controls, asdescribed in subsection III.E. below.

Some embodiments provide a display of a three-dimensional space thatshows what path a camera (or what path the center of the camera's frameof view) will take through that space over time. Some such embodimentsrecalculate the path in the displays when a new framing behavior isadded to the camera. Some embodiments recalculate the path when anexisting framing behavior is changed. Some embodiments recalculate thepath when movements (or other parameter changes) of the target objectduring the specified duration affect the way the camera will implementthe given behavior (e.g. when the position of the target object, at agiven instant in the duration, changes that affects where the behaviorwill send the camera, even though the behavior itself is unchanged).

In some embodiments, after an application has received a change thatwould affect the camera's path, the application recalculates the path ofthe camera. The application generates a new path for the camera to taketo implement its framing behaviors. FIG. 9 illustrates the process 900of some embodiments for such path generation. At 905, the process 900receives a change of framing behavior of the camera, or a change that(during the specified duration) affects the positions and/ororientations of objects that the camera behavior targets.

The process 900 (at 910) determines whether the current path of thecamera already specifies that the camera will be in a position andorientation to frame the object as of the beginning of the designatedduration. If the current path already specifies that the object will bein a position and orientation to frame the object at the beginning ofthe specified duration then the process 900 (at 920) calculates a paththat indicates that the camera will continue to frame the object for theduration of the designated time. If the object isn't set to move,reorient, or change size during the designated time, the calculated pathsimply indicates that the camera will stay in the same position,otherwise, the process 900 (at 920) will generate a new path thatindicates that the camera will move to keep the object framed. And willsend the process 900 to operation 930

If the process (at 910) determines that the object will not be framed atthe beginning of the designated time period, given the existing path,then (at 915) it calculates a path that indicates that the camera willmove to the location of the targeted object (that is, the location theobject will be when the camera reaches it) and calculates a plan torotate the camera to face the associated object. In some embodiments,this path can be altered in various ways as described in subsectionIII.G., below.

The path does not necessarily end at the point in time that the objectis framed. If the object is set to move or rotates after the camerabegins framing it, then the process 900 (at 920) calculates a pathand/or orientation plan that indicates that the camera will move withthe object until the end of the duration. Some embodiments allow theduration for framing the object to be adjusted, either as a fraction ofthe total behavior time or in absolute terms. Adjusting the time fortracking the object is further described in section III.E., below.

One of ordinary skill in the art will realize that the order ofdetermining the paths and orientations may be different in differentembodiments. For example, in some embodiments, the paths and orientationplans for the camera are worked out essentially simultaneously, while inothers they are calculated separately.

Once a scene (with or without behaviors) is set up the application canrender the scene. In some embodiments, the application can show ananimation of the scene that provides the user with an outside view ofhow the camera will move and turn as the scene plays out, rather than acamera's eye view. Such outside views are illustrated in the figuresdescribed in subsection III.G., below to demonstrate the effect ofvarious parameters on the motion of a camera of some embodiments.

In some embodiments, the application uses the path calculated by theprocess 900 to determine the positions and locations of the cameraduring rendering. In other embodiments, the path calculated by process900 is used for showing the user where the camera will go and where itwill point during the scene, but the motions of the camera duringrendering are calculated while the rendering is happening, rather thanpre-calculated. Calculations during rendering are described insubsection III.C. below.

In some embodiments, the application receives a request to evaluate theposition and orientation of a camera and interpolates a position andorientation for the camera between its current location and orientation,and the position and orientation required to frame the target.

C. Calculating Camera Parameters During Rendering

FIG. 10 illustrates the process 1000 of implementing a framing behaviorwhile rendering a scene. Process 1000 (at 1005) renders a frame usingthe capture parameters of the camera (e.g. position, orientation, andfield of view). The rendered frame is a calculation of how the objectsin the camera's field of view would appear to a camera with thoseparameters. The rendered frame includes images of the graphical objectswithin the field of view of the camera as of that point in a timeline ofthe scene. In some embodiments, the images (of the objects) in therendered frame are scaled in proportion to the portion of the field ofview they intercept and are skewed from their original appearance inaccord with the angle between the camera's orientation and the object'sorientation. In some embodiments, rendering entails creating atwo-dimensional representation of a set of 2D or 3D objects, in someembodiments, with respect to lighting and various atmospheric and othereffects, at a point in time from a particular point of view at aspecified width and height.

If (at 1010) the rendered frame is the last frame, then the processends. If (at 1010) the rendered frame is not the last frame, then theprocess 1000 (at 1015) implements one frame's worth of changes to anyobjects (that need changing) in the scene other than the camera. Inother words it calculates the updated position and orientation of thecamera with respect to any behaviors and associated objects for the nexttime increment (for example for the next 1/30th of a second of the videoclip). For example, if an object is set to move, then the position ofthe object is changed by the amount that it is supposed to move from theinstant on the timeline that the rendered frame represents to theinstant on the timeline that the next frame to be rendered represents.If the camera has no framing behavior associated with it (at 1020) atthat instant on the timeline, then the process 1000 loops back to 1005and renders the next frame without changing the camera's parameters.

If the camera has a framing behavior associated with it at that instanton the timeline, then the process 1000 (at 1025) calculates theposition, orientation, and field of view of the camera for the nextframe in the timeline. The calculation is based on the framing behaviorof the camera. Further descriptions of the calculations of someembodiments are in subsection III.D., below. In some cases, such as whenthe camera is already framing the object that the camera is associatedwith and the object does not move from the rendered frame to the nextframe to be rendered, the framing behavior will not change anyparameters of the camera. In some embodiments, framing behavior changesthe field of view of a camera. In other embodiments, framing behaviorchanges the location and orientation, but does not change the frame ofview of the camera.

D. Calculations of Framing Behavior

In some embodiments, the position and orientation of each object andcamera can be represented by a 4×4 matrix that expresses the object'slocation and rotation in ‘world space’ which is a shared co-ordinatesystem for all objects in a 3D scene. Since each object in the scene hasits own position and orientation, each object can be thought of ashaving its own co-ordinate system, and the 4×4 matrix for each objectnot only expresses that information, but also allows transformationsfrom the object's coordinate system into world space and back into theobject's local space via the inverse matrix. In order to calculaterelative positions and orientations of different objects in a 3D scene,it is necessary to transform each object so that it is in the samecoordinate system as the other object(s).

In some embodiments, calculating the location of a target objectrelative to the camera requires the transformation of the targetobject's position and orientation into the camera's coordinate systembefore calculating the distance the camera has to move in order to framethe target object and the required orientation change for the camera sothat it faces the target object.

In some embodiments, during the period of transition of the camera fromits original location and orientation to the location and orientationwhere it is tracking (or framing) the target object, the position andorientation can be calculated by linearly interpolating between theoriginal position and the tracking position, and sphericallyinterpolating the orientation between the original orientation and theorientation required at that position and time to frame the targetobject. In some embodiments, the interpolation amount can be derivedfrom the ratio of the time elapsed within the transition and theduration of the transition period.

In some embodiments, this interpolation insulates the camera from largechanges in the position and orientation of the object. In suchembodiments, the position of the camera and the orientation of thecamera at the end of the transition duration (and hence the beginning ofthe tracking duration) is known before the camera starts to move.Accordingly, the camera smoothly moves and reorients to reach thatposition, with any major changes in the position or orientation of theobject during any particular consecutive frames already accounted for inthe smooth movement and reorientation of the camera.

In contrast, in some embodiments, during the period that the camera istracking the target object, its position and orientation can be solelydetermined by the position and orientation calculated that will make thetarget object appear at the desired size and position within the frameof the camera.

In other words, in some embodiments, for each frame of the trackingduration the camera will be automatically set, based on the framingbehavior, to be in whatever position and orientation are necessary tomaintain the object in frame, regardless of how large a change inposition and orientation of the camera that requires.

In some embodiments, some or all of the calculations described duringthe transition and tracking durations would require the transformationsmentioned before to compute the relative position and orientation of thecamera and target.

E. Framing Controls

FIG. 11 illustrates the framing controls 1100 for setting a framingbehavior of a camera in an exemplary embodiment. It includes (1) atarget control 1105 for selecting an object in the scene to target, (2)a target face box 1110, (3) an up vector box 1115, (4) a framing box1120, (5) an orientation box 1125, (6) a position transition time slider1130, (7) a rotation transition time slider 1135, (8) a transition box1140, (9) an ease out time 1145, and (10) an ease out curve 1150.

The target control 1105 presents a user with a way of selecting whichobject in the scene the behavior should focus on (e.g. which object totake the camera to and frame). Various embodiments provide differentways to activate such a control. For example, clicking on the icon couldbring up a pull-down menu listing all the available objects or showingthumbnails of them. In some embodiments, once the object is selectedfrom the pull-down menu, the camera becomes associated with that object.In some embodiments, objects or icons representing the objects could bedragged and dropped onto the framing controls to associate the camerawith an object. One of ordinary skill in the art will realize that othertypes of controls can also be used to associate the camera with theobject.

The target face box 1110 determines which face of the target the camerashould line up with. Here, the target face is the positive z-axis.Accordingly, when rendering the scene, the framing position of thecamera will be on the positive z-axis of the object. In someembodiments, this box provides a pull-down menu that allows any positiveor negative axis to be selected, a user defined direction relative tothe target (e.g., a direction that is a linear combination of the axisdirections), a direction relative to some other object or group ofobjects, or an axis or direction relative to a global coordinate system.

The up vector 1115 determines which way is up. That is, what directionin the scene will be shown at the top of the screen once the scene isrendered. This vector can also be an axis of the object, a user defineddirection relative to the object, or a direction relative to anotherobject, group of objects, or global coordinate system. In someembodiments, the up vector can be set to “auto” which will automaticallyset an appropriate axis. For example, a default axis that will be the updirection unless the camera is looking along that axis, in which case asecond default axis would be set as the up axis.

The framing box 1120 determines what kind of framing the camera shouldperform. In some embodiments, this box allows (1) a selection of simplyframing the object so that the object fills the screen, possibly withparts cropped out, (2) a horizontal or vertical frame, in which thecamera is positioned to capture the indicated direction even if thatcrops the object in the other direction or leaves room on either side ofthe object in that direction (3) a complete frame in which the camera ispositioned so that the object is as large as possible without croppingany of it, and (4) custom fit, in which the application lets a userenter his own framing offsets.

The orientation box 1125 determines whether, at each time in thetimeline, the orientation plan will rotate the camera toward where theobject is at that particular time on the timeline, or whether theorientation plan will keep turning the camera toward the orientation itwill have when it finally frames the object. If the object is moving ina jittery manner, then turning the camera to face whatever the currentlocation of the object is could result in wild swings of the camera asit tries to keep up with the rapid motion of the object. In thatcircumstance, orienting to the final transition frame may yield betterresults.

In some embodiments described in this application, the transition time(for getting to a position to frame an object) and the tracking time(for moving with the object to keep it framed as specified) arediscussed as independent durations. In other embodiments, one durationis set for the total amount of time for getting into position to frameand for tracking the object to keep it in frame. Some of thoseembodiments provide a position transition time slider 1130 that allows auser to determine what percentage of the duration for getting to andframing the object will be dedicated to getting into framing position(i.e. transition time) and what percent will be dedicated to trackingthe object to keep it in frame. For example, if the position transitiontime slider 1130 is set for 30% and the duration of the behavior istwo-hundred frames then the camera will take sixty frames to reach theframing position and the camera will track the object to keep it framedas specified for the remaining one-hundred-forty frames (barring an easeout setting, described below).

The rotation transition time slider 1135 determines what percentage ofthe duration of the behavior will be dedicated to rotating toward thetarget (i.e. rotation transition time). For example, if the rotationtransition time slider 1135 is set for 10% and the duration of thebehavior is two-hundred frames then the camera will take twenty framesto reach the framing orientation, and will maintain the framingorientation for one hundred-eighty frames (again, barring an ease outsetting).

The transition box 1140 affects how the transition proceeds. Forexample, if the transition box 1140 is set to “constant”, then thetransition will take place at a constant rate. If the transition box1140 is set to go slowly at first, then speed up, then slow down again(e.g. to simulate a camera that has inertia), all other parametersunchanged, then the behavior would take the same amount of time to framethe object, but would spend most of that time on the start and finish ofthe transition, with a shorter, more rapid transition in between. Someembodiments have separate transition boxes for rotation and for motion(e.g. to allow a rapid rotation and an inertial movement).

In some embodiments, a behavior can be set to be less effective aftersome set portion of that duration. Meaning that the item would averagethe effects of that behavior with whatever the default behavior of theitem was (e.g. a camera of some embodiments defaults to sitting in oneposition, pointing in the same direction, and not changing its field ofview). The ease out time 1145 determines at what percentage of theduration the behavior starts to become less effective. In FIG. 11 theease out time is 100%, meaning that the behavior retains its fullstrength for 100% of the duration of the framing behavior. However, ifthe ease out time were set at 70% then the camera would start fallingbehind the object after 70% of the duration of the behavior, and stopentirely at 100% of the duration of the behavior. In some embodiments, asetting of 70% would mean 70% of the duration of the framing behavior asa whole, in other embodiments, it would mean 70% of the trackingduration.

Some embodiments with an ease out time also have an ease out curveslider 1150. In such embodiments, the slider determines how quickly thebehavior weakens. For example, an ease out curve of zero would create asteady decline in behavior strength, while a higher ease out curve wouldcreate a faster initial drop in behavior strength followed by a slowerdecline of the remaining behavior strength. This could be used forexample to simulate friction or air resistance slowing down a(hypothetical or virtual) vehicle carrying the simulated camera.

FIG. 11 does not illustrate a control for setting the total time for the“getting to and framing” behavior. However, in some embodiments, acontrol panel similar to control panel 1100 includes a control forsetting that time. In some embodiments, the total time can be adjustedusing the icons of a timeline such as timeline 360 (e.g., by selectingan edge of a timeline icon representing the framing behavior andextending or reducing its length on the timeline). Other embodimentshave controls that directly set time to frame and time to hold frame.The applications of some embodiments provide other tools for affectingthe behavior of the camera, e.g. tools to increase the offset of thecamera from the straight line connecting the starting and end points.Some embodiments provide a pulldown menu 1155 that allows a user tochange to a different type of behavior, as described in section IVbelow.

F. Camera Paths

FIGS. 12-27 illustrate the paths generated for a camera by an exemplaryembodiment with under various settings described in relation to theindividual images. The various different types of paths are divided intosections. FIGS. 12-14, described in section III.A., illustrate how theapplication represents a targeted object to the user in some embodimentsand the effects of various adjustments of the parameters for framingbehavior on the path the camera will take. FIGS. 16-21, described insection III.H., illustrate the framing of multiple objects. FIGS. 22-25,described in section III.I., illustrate the framing of a moving object.FIGS. 26-27, described in section III.J., illustrate the effect ofoverlapping framing behaviors on the path of the camera.

G. Path of the Camera's Frame

In some embodiments, the path displayed in the display window (thatdisplays the 3D space) is not the path that the camera itself will take,but rather the path that the camera's center of view will take whilegetting to and framing the object. FIG. 12 illustrates a camera's pathto its target in such an embodiment. A camera 1210 starts out a scene ata particular location, and pointing at endpoint 1212 (centered in frame1213). The camera has been set to target object 1215. The applicationhas generated a path and orientation plan to take the camera intoposition to frame object 1215, that is, to point at object 1215 straightalong a specified axis of object 1215.

When the camera 1210 has framed the object, endpoint 1217 will be at thecenter of frame 1213. In this embodiment, the application connects theendpoints 1212 and 1217 using a straight line 1220. The application alsoshows a curved path 1240 representing the location of the center of theframe 1213 at various times from the beginning of the behavior until theend of the behavior. The application provides a control 1250 on thecurved path for adjusting the shape of the curved path. In theillustrated embodiment, the camera 1210 is initially oriented to theright of the orientation it will have when framing object 1215.According, camera 1210 would rotate to face more to the left as it movestoward object 1215. This is reflected in the figure by the pathinitially curving to the left.

The results of adjusting the shape of the curved path 1240 areillustrated in FIG. 13. Curved path 1340 has been moved by a dragoperation on the control 1250 to be farther from the straight line.1220. This figure illustrates the camera 1210 at the end of its path andorientation plan. The camera 1210 is at its focal distance from object1215, along its z-axis and frame 1213 is centered on endpoint 1217.

As described above in subsection III.A., some embodiments allow a camerato target an object for framing, but apply an offset to the framing.FIG. 14 illustrates the camera 1210 framing object 1215 with an offsetaway from the object along the z-axis of the object. Frame 1213 is nowcentered on endpoint 1417, while large frame 1420 surrounds object 1215and shows the relative size of the object to the field of view of thecamera 1210, when the camera 1210 is at the indicated location and withthe indicated field of view. Some embodiments allow offsets in anydirection.

In some embodiments, illustrated in FIG. 15, the path 1510 of the camera1520 is represented by a straight line 1530, from the starting locationto the ending location, and a disk 1540 centered on the straight line.The disk is movable along the straight line, and changes sizes as itmoves along the straight line in such a way that the edge of the diskintersects the curved line.

H. Framing Multiple Objects

Some embodiments allow framing of multiple objects at different times.FIGS. 16-21 illustrate a sequence of camera positions and orientationsat multiple times within a scene, where the camera has been set totarget multiple objects in turn. FIG. 16 shows the camera paths of someembodiments. In this figure, the curved path 1600 represents the plannedmotion of camera 1610 itself, rather than the motion of the center ofthe frame like in section III.G.).

The curved path 1600 is determined by the behaviors set up on thetimeline 1612. The timeline 1612 has camera behaviors 1614, 1616, and1618 and time mark 1619. Behavior 1614 targets object 1620, behavior1616 targets object 1215, and behavior 1618 targets object 1630. Becausetime mark 1619 is at the beginning of the timeline, the camera is at thebeginning of path 1600.

FIG. 17 illustrates the scene at a later time. Time mark 1619 has movedabout 35% of the way along behavior 1614. As the behavior 1614 is set tohave the camera 1610 reach the framing position 50% along the behavior,the frame 1213 has not yet reached the framing position for object 1620.FIG. 18 illustrates the scene when the time mark has passed the 50% markof behavior 1614. Object 1620 is now fully framed in frame 1213.

In FIG. 19, the time mark has moved from behavior 1614 to behavior 1616.The camera 1610 has started to move to target 1215 as dictated bybehavior 1616. The starting point 1910 for the camera's path 1600 toobject 1215 is the position of the camera at the end of behavior 1614(i.e. framing object 1620). As the time mark 1619 is at a very earlypoint in behavior 1616, camera 1610 is only slightly displaced fromstarting point 1910. FIGS. 20-21 respectively illustrate the position ofcamera 1610 shortly before and after the 50% point along behavior 1616.As before, the 50% mark is the demarcation between the transitionportion of the framing behavior and the tracking portion of the framingbehavior. Accordingly, the camera 1610 is just about to, and has justbegun framing target 1215, in FIG. 20 and FIG. 21 respectively.

I. Framing a Moving Object

In some embodiments, a camera behavior can be provided that sets thecamera to target an object that has one or more behaviors of its own,such as commands to move or rotate. FIGS. 22-25 illustrate sequentialcamera positions at multiple times as the camera 1610 moves and rotatesto frame object 1215 while object 1215 itself moves. FIG. 22 illustratesthe curved path 2200 that the camera will take to frame and followobject 1215. Time mark 1619 is at the beginning of the scene, beforebehavior 2220, which is set so that the camera 1610 targets object 1215on the timeline. In FIG. 23, time mark 1619 is about 25% of the wayalong behavior 2220. Object 1215 has moved to the right and camera 1610has moved closer to object 1215 and is still turning to face it. In FIG.24, time mark 1619 has moved past the 50% point of behavior 2220. Object1215 has moved farther to the right, and camera 1610 has framed object1215. In FIG. 25, time mark 1619 has moved past the end of behavior2220, so camera 1610 has stopped tracking object 1215. Object 1215 hasmoved right since camera 1610 stopped tracking it and so the camera nolonger frames it (though most of the object is still within the view ofcamera 1610).

J. Overlapping Framing Behaviors

In some embodiments, multiple behaviors for a camera can overlap. Insuch embodiments, the resulting movement and rotation of the cameragradually changes from following the earlier behavior, to following thelater behavior. In some embodiments, this gradual change is accomplishedby taking a weighted average of the positions and orientations that thebehaviors would separately indicate, where the weighted average smoothlytransitions from entirely the first behavior to entirely the secondbehavior during the overlapping time. In other embodiments, the secondbehavior modifies the position/orientation resulting from the first.

In order to provide contrast FIG. 26 illustrates a scene withnon-overlapping behaviors in which camera 1610 targets moving object1215 and then stationary object 2610. Behavior 2612 causes the camera1610 to target object 1215 and behavior 2614 causes the camera 1610 totarget object 2610. The application has generated path 2620. The path2620 has a kink 2630 indicating the location where neither behavior isactive. The kink 2630 is there because the part of the path before (tothe left of) kink 2630 is determined by behavior 2612 and the part ofthe path 2620 after (to the right of) the kink 2630 is determined bybehavior 2614.

FIG. 27 illustrates a very similar scene with overlapping behaviors inwhich camera 1610 also target moving object 1215 and then stationaryobject 2610. The only difference in settings is that behavior 2712overlaps behavior 2714, on the timeline while the camera behaviors inFIG. 26 do not overlap. In this figure, path 2720 is different in eachof three parts bounded by kinks 2730 and 2740. The part of the pathbefore (to the left of) kink 2730 is determined solely by behavior 2712(and the motion of object 1215). The part of the path after (to theright of) kink 2740 is determined solely by behavior 2714 (and theposition of object 2610).

In some embodiments, during any period where two different framingbehaviors (that each associate the camera with a different object)overlap, the calculation of the position and orientation of the cameracan be worked out by calculating the position and orientation the camerawould be in if it were framing the first target, and then using thatposition and orientation as input for the subsequent calculation toframe the second target.

In some embodiments, a later, overlapping framing behavior overrides aprevious framing behavior while the behaviors overlap. In other words,in such embodiments, the effect of the later behavior is the same as ifthe camera simply had simply been waiting at the location andorientation that it had as of the start of the later framing behavior.In some embodiments, a later framing behavior is interpolated with theearlier framing behavior during the period that they overlap.

This section described framing behavior, however, some embodiments allowother behaviors to be associated with a camera. Several such behaviorsare described in section IV, below. One of ordinary skill in the artwill realize that the described behaviors are examples and that someembodiments provide applications that associate other behaviors withcameras over specified durations.

IV. Other Behaviors

A. Behavior of Objects

In some embodiments, an application provides controls for a user to setand modify one or more behaviors that a selected object will exhibitover a specified duration of time. For example, a behavior for an objectcould be “move along a specified path”, “rotate”, “move it back andforth”, “change its size”, or (for video clip objects) “play the videoclip at a specified rate” (e.g. in slow motion), etc.

B. Behavior of Cameras

Some embodiments provide controls that allow a user to assign one ormore behaviors to a camera for some duration, and modify any behaviorsassigned to the camera. FIG. 28 illustrates a set of controls of someembodiments for assigning various behaviors to a camera. In this figure,pulldown menu item 2800 provides access to behavior controls 2810-2850.Behavior control 2810 sets the camera to “dolly”, that is, to move alonga set path (e.g. in the direction the camera is pointed, sometimescalled the “camera's local z-axis”) over the duration of the behavior.Behavior control 2820 sets the camera to sweep. In some embodiments,sweeping changes the orientation of the camera without changing itsposition. In some embodiments, sweeping keeps the camera pointing at aparticular location in the 3D space as the camera revolves about thatpoint. Behavior control 2830 sets the camera to “zoom” in or out, thatis, to narrow or widen its field of view.

In some embodiments, the application provides behaviors relative to anobject or group of objects. For example, behavior control 2840 sets thecamera to “zoom layer” also called “dolly zoom”. A dolly zoom comprisesmoving the camera while changing the focus of the camera such that aparticular object or group of objects stays the same in the field ofview while other objects behind it appear to change size. Thesebehaviors are described further in subsections IV.C-IV.F., below.Behavior control 2850 sets the camera to “frame” a particular object, asdescribed above. Some embodiments provide other types of controls forassigning behaviors, and provide other behaviors.

Though the behaviors herein are described as having certain controls foradjusting certain parameters of the behaviors, one of ordinary skill inthe art will understand that in other embodiments, other ways ofspecifying the same parameters may be used. For example, someembodiments provide controls that allow a user to directly set thestarting and ending conditions of a behavior. Some embodiments providecontrols that allow a user to set the magnitude (e.g. distance) of thechange a behavior will make over the specified duration and use thepre-existing parameters of the camera (e.g. initial position andorientation) as the value of the parameters at the start of theduration. Some embodiments provide controls allowing the user to specifythe ending conditions (e.g. a position) for a behavior and the othereffects are determined in relation to some object. For example, aframing behavior could have user definable parameters for the endinglocation, but determine the orientation and/or field of view of thecamera such that it maintains the object in a given portion of the fieldof view.

One of ordinary skill in the art will realize that many of thecharacteristics of the framing behavior described above also apply tocamera behaviors in general. For example, the

C. Dolly Behavior

In some embodiments, when a dolly behavior is associated with a cameraover some duration, the camera changes its position over that duration.FIG. 29 illustrates the motion of a camera during the duration of adolly behavior and the effects of that motion on the rendered image.Screenshot 2900 shows a three-dimensional space at the beginning of theselected duration of a dolly behavior that has been associated withcamera 2910. Camera 2910 has a field of view indicator 2920. As thefield of view indicator 2920 shows, at the beginning of the duration ofthe dolly behavior, an apple image 2930 and a circle image 2940 are bothwithin the field of view of the camera 2910. Path 2950 is the course ofthe camera during the duration of the dolly behavior.

Screenshot 2901 shows the rendered frame corresponding to thethree-dimensional space of screenshot 2901, i.e. at the beginning of theduration of the dolly behavior associated with the camera. As indicatedabove, apple image 2930 and circle image 2940 are within the field ofview of the camera and because of this, they are shown in the renderedframe.

Screenshot 2902 shows the three-dimensional space later in the durationof the dolly behavior. At this time in the duration, the camera 2910 hasmoved forward along the indicated path. Only the right edge of the appleimage 2930 and the left half of the circle image are in the field ofview of the camera 2910. Accordingly, the corresponding rendered frameshown in screenshot 2903 shows the right edge of the apple image 2930and the left half of 2940.

Some embodiments provide a control 2955 that determines how far thecamera will be moved over the duration of an associated dolly behavior.In such embodiments, the starting point of the camera is the locationthat the camera happens to be when the behavior starts. Some embodimentshave other types of controls to determine the starting and ending pointsof the camera at the beginning and ending of the duration. For example,some embodiments provide controls that allow a user to specify an endingpoint of the dolly behavior, rather than specifying a distance, andtravels from wherever the camera happens to be to that ending point overthe duration. Some embodiments provide controls that allow a user tospecify both a starting and an ending point.

Some embodiments provide a control 2960 that sets a parameter for thebehavior that affects how the camera moves over that distance. Forexample, if the control 2960 is set to constant, then the camera 2910will move the same distance in each frame over the duration of the dollybehavior. In some embodiments, the control 2960 can be set to simulatethe effects of inertia, moving slowly at the beginning of the duration,picking up speed as the duration progresses, traveling at a constantspeed during the middle of the duration, then losing speed until itstops at the end of the duration (and the end of the selected distance).Some embodiments have other parameters that affect the dolly behavior.

D. Sweep Behavior

In some embodiments, when a sweep behavior is associated with a cameraover some duration, the camera changes its orientation over thatduration. FIG. 30 illustrates the rotation of a camera during theduration of a sweep behavior and the effects of that motion on therendered image. Screenshot 3000 shows a three-dimensional space at thebeginning of the selected duration of a sweep behavior that has beenassociated with camera 2910. As the field of view indicator 2920 shows,just as in FIG. 29, at the beginning of the duration of the sweepbehavior, the apple image 2930 and the circle image 2940 are both withinthe field of view of the camera 2910.

Screenshot 3001 shows the rendered frame corresponding to thethree-dimensional space of screenshot 3001, i.e. at the beginning of theduration of the sweep behavior associated with the camera. As indicatedabove, apple image 2930 and circle image 2940 are within the field ofview of the camera and because of this, they are shown in the renderedframe.

Screenshot 3002 shows the three-dimensional space later in the durationof the sweep behavior. At this time in the duration, the camera 2910 hasturned on its axis. Only the apple image 2930 is in the field of view ofthe camera 2910. Also, the camera 2910 is oriented at an angle to theapple image 2930. The left edge of the apple image 2930 is farther awayfrom the plane of the camera's field of view than the right edge.Accordingly, the corresponding rendered frame shown in screenshot 3003shows the apple image 2930 skewed with the right side longer do to thesimulated effects of perspective (e.g. closer objects look bigger).

Some embodiments provide one or more controls 3050 to allow a user toset the starting and ending angle of the camera. That is, theorientation of the camera at the beginning and ending of the duration ofthe associated sweep behavior. Some embodiments provide a control 3055that sets a parameter for the behavior that affects how the camera movesover that distance. For example, if the control 3055 is set to constant,then the camera 2910 will turn by the same angle in each frame over theduration of the sweep behavior. In some embodiments, the control 3055can be set to simulate the effects of inertia, moving slowly at thebeginning of the duration, picking up angular speed as the durationprogresses, traveling at a constant angular speed during the middle ofthe duration, then losing angular speed until it stops at the end of theduration (and the end of the selected rotation angle). Some embodimentsprovide a control 3060 that determines what axis the camera will pivotabout over the duration of the associated sweep behavior. Someembodiments provide an option to pivot about axes in various differentcoordinate systems, for example, some embodiments provide a choicebetween a z-axis of the camera and an axis through the camera that isparallel to the global z-axis of the three-dimensional space.

Some embodiments have other parameters that affect the sweep behavior.For example, some embodiments provide controls that allow a user tospecify the magnitude of the angle that the camera will rotate throughover the duration. In such embodiments, the starting angle is determinedby the original orientation of the camera.

FIG. 31 illustrates an alternate sweep behavior of some embodiments.This sweep behavior causes the camera 2910 to revolve about a particularpoint 3130, maintaining a constant distance from that point 3130 andpointing at it. From screenshot 3100 to screenshot 3102, some part ofthe duration of the sweep behavior associated with the camera 2910 haspassed and the camera has revolves about point 3130. The apple image2930 in the rendered frame shown in screenshot 3103 reflects the changesin the position and rotation of the camera. As was the case in thepreviously described sweep behavior, the apple image 2930 in screenshot3103 appears larger on the right side because of perspective.

E. Zoom Behavior

In some embodiments, when a zoom behavior is associated with a cameraover some duration, the camera changes its field of view. FIG. 32illustrates the changing of the field of view of camera 2910 and theeffects of that change on the rendered image. Screenshot 3200 shows athree-dimensional space at the beginning of the selected duration of azoom out behavior that has been associated with camera 2910. As thefield of view indicator 2920 shows, just as in FIG. 29, at the beginningof the duration of the zoom behavior, the apple image 2930 and thecircle image 2940 are both within the field of view of the camera 2910.

In screenshot 3200, the apple image 2930 and the circle image 2940 filla considerable portion of the solid angle of the camera's 2910 field ofview. Accordingly, the corresponding rendered frame in screenshot 3201shows the apple image 2930 and circle image 2940 taking up acorrespondingly large portion of the rendered frame in screenshot 3201.

Screenshot 3202 shows the three-dimensional space later in the durationof the zoom behavior. At this time in the duration, the camera 2910 isstill in the same position and still has the same orientation, however,as the field of view indicator 2920 shows, the field of view nowcaptures a substantially larger portion of the three dimensional space(e.g. the solid angle it “sees” is larger) the apple image 2930 and thecircle image 2940 are still in the field of view of the camera 2910.However, they now take up a considerably smaller fraction of the totalfield of view. Accordingly, the corresponding rendered frame shown inscreenshot 3203 shows the apple image 2930 and the circle image 2940taking up a considerably smaller fraction of the rendered frame inscreenshot 3203, even though the camera is the same distance from theobjects as it was at the beginning of the duration when the renderedframe in screenshot 3201 was rendered.

Some embodiments provide one or more controls (not shown) to allow auser to set the starting and ending field of view of the camera. Someembodiments provide a control (not shown) that sets a parameter for thebehavior that affects how the camera zooms over that duration. Forexample, if the control is set to constant, then the camera 2910 willzoom by the same amount in each frame over the duration of the zoombehavior.

Some embodiments have other parameters that affect the zoom behavior.For example, some embodiments provide controls that allow a user tospecify the magnitude of the change in the zoom level (e.g. 2×, 3×, etc)that the camera will go through over the duration. In such embodiments,the starting field of view is determined by the original orientation ofthe camera.

E. Dolly-zoom Behavior

In some embodiments, when a dolly-zoom behavior is associated with acamera over some duration, the camera simultaneously changes its fieldof view and moves. The changes to the field of view and the motion arerelated in such a way as to keep any objects in a particular plane (aplane ahead of and at right angles to the motion of the camera) the samesize. For example, if a camera is initially ten feet away from an objectto five feet away from the object, the distance from that object hashalved and the portion of the field of view that the object takes updoubles in height and width (i.e. a factor of ten feet over five feet).By zooming out by a factor of two, the camera can make that objectappear to be the same size when it is five feet away and zoomed out asit was when it was ten feet away and zoomed in.

An object in the background, initially twenty-five feet away from thecamera has also grown bigger because of the change in perspective, butonly to 125% of its original size (i.e. a factor of twenty-five feetover twenty feet). Meanwhile the zoom out drops the apparent size of thebackground by just as big a factor as it drops the apparent size of theforeground (i.e. a factor of two in this example). The combination ofmoving the camera forward and zooming out has the net effect of reducingthe apparent size of the background object by 62.5% (i.e. 125%/).Accordingly, when moving the camera toward the objects, the dolly-zoomeffect keeps the foreground object the same apparent size and shrinksthe background object(s).

FIG. 33 illustrates the changing of the field of view and position ofcamera 2910 and the effects of that change on the rendered image.Screenshot 3300 shows a three-dimensional space at the beginning of theselected duration of a dolly-zoom behavior that has been associated withcamera 2910.

In screenshot 3300 the camera 2910 is farther from the expanded appleimage 3330 than it is from circle object 2940 and square object 3340.Because the front end of field of view indicator 2920 is in the sameplane as the images 2940 and 3340, the rendered images of 2940 and 3340will have the same size ratio as the size ratio of the images 2940 and3340 to the front plane of the field of view indicator 2920.Accordingly, the rendered frame in screenshot 3301 shows the images 2940and 3340 at that relative size, with the with apple image 3330 large inthe background of the rendered frame.

Screenshot 3302 shows the three-dimensional space later in the durationof the dolly-zoom behavior. At this time in the duration, the camera2910 has moved forward and expanded its field of view. Images 2940 and3340 are still in the same plane as the end of the field of viewindicator, and thus will be the same size in the rendered image inscreenshot 3303. However, the apple image 3330 in the background hasapparently reduced in size as a result of the dolly-zoom effectassociated with the camera over the specified duration.

In some embodiments, an application provides parameter settings for abehavior for performing a transition from an initial set of camerasettings (sometimes called capture parameters or operational parameters,e.g. location, orientation, and field of view) to a set of camerasettings that allows some effect to be performed. For example, a framingbehavior can include a transition duration to move the camera from aninitial position and orientation into framing position and orientation,before the tracking duration in which the object is framed. Similarly adolly-zoom behavior may have a transition duration to get into astarting position for performing a dolly-zoom.

Though the above behaviors have been described with regard to certaintypes of controls and parameters, these are examples of variousembodiments. One of ordinary skill in the art will realize that otherembodiments are within the scope of the invention. Accordingly, theintended limitations are the ones disclosed in the claims.

V. Computer System

FIG. 34 illustrates a computer system with which some embodiments of theinvention are implemented, such a computer system includes various typesof computer readable mediums and interfaces for various other types ofcomputer readable mediums. Computer system 3400 includes a bus 3405, aprocessor 3410, a graphics processing unit (GPU) 3420, a system memory3425, a read-only memory 3430, a permanent storage device 3435, inputdevices 3440, and output devices 3445.

The bus 3405 collectively represents all system, peripheral, and chipsetbuses that communicatively connect the numerous internal devices of thecomputer system 3400. For instance, the bus 3405 communicativelyconnects the processor 3410 with the read-only memory 3430, the GPU3420, the system memory 3425, and the permanent storage device 3435.

From these various memory units, the processor 3410 retrievesinstructions to execute and data to process in order to execute theprocesses of the invention. Some instructions are passed to and executedby the GPU 3420. The GPU 3420 can offload various computations orcomplement the image processing provided by the processor 3410. In someembodiments, such functionality can be provided using CoreImage's kernelshading language.

The read-only-memory (ROM) 3430 stores static data and instructions thatare needed by the processor 3410 and other modules of the computersystem. The permanent storage device 3435, on the other hand, is aread-and-write memory device. This device is a non-volatile memory unitthat stores instructions and data even when the computer system 3400 isoff. Some embodiments of the invention use a mass-storage device (suchas a magnetic or optical disk and its corresponding disk drive) as thepermanent storage device 3435.

Other embodiments use a removable storage device (such as a floppy disk,flash drive, or ZIP® disk, and its corresponding disk drive) as thepermanent storage device. Like the permanent storage device 3435, thesystem memory 3425 is a read-and-write memory device. However, unlikestorage device 3435, the system memory is a volatile read-and-writememory, such a random access memory. The system memory stores some ofthe instructions and data that the processor needs at runtime. In someembodiments, the invention's processes are stored in the system memory3425, the permanent storage device 3435, and/or the read-only memory3430.

The bus 3405 also connects to the input and output devices 3440 and3445. The input devices enable the user to communicate information andselect commands to the computer system. The input devices 3440 includealphanumeric keyboards and pointing devices. The output devices 3445display images generated by the computer system. For instance, thesedevices display a graphical user interface. The output devices includeprinters and display devices, such as cathode ray tubes (CRT) or liquidcrystal displays (LCD).

Finally, as shown in FIG. 34, bus 3405 also couples computer 3400 to anetwork 3465 through a network adapter (not shown). In this manner, thecomputer can be a part of a network of computers (such as a local areanetwork (“LAN”), a wide area network (“WAN”), or an Intranet, or anetwork of networks, such as the internet For example, the computer 3400may be coupled to a web server (network 3465) so that a web browserexecuting on the computer 3400 can interact with the web server as auser interacts with a graphical user interface that operates in the webbrowser.

Any or all components of computer system 3400 may be used in conjunctionwith the invention. For instance, in some embodiments the execution ofthe frames of the rendering is performed by the GPU 3420 instead of theCPU 3410. Similarly, other image editing functions can be offloaded tothe GPU 3420 where they are executed before the results are passed backinto memory or the processor 3410. However, a common limitation of theGPU 3420 is the number of instructions that the GPU 3420 is able tostore and process at any given time. Therefore, some embodiments adaptinstructions for implementing processes so that these processes fit ontothe instruction buffer of the GPU 3420 for execution locally on the GPU3420. Additionally, some GPUs 3420 do not contain sufficient processingresources to execute the processes of some embodiments and therefore theCPU 3410 executes the instructions. One of ordinary skill in the artwould appreciate that any other system configuration may also be used inconjunction with the present invention.

One of ordinary skill in the art will realize that some of the featuresdescribed in this application are present in prior art (e.g. 3Dcompositing applications), however, they have not been used incombination with other features described herein. Furthermore, while theinvention has been described with reference to numerous specificdetails, one of ordinary skill in the art will recognize that theinvention can be embodied in other specific forms without departing fromthe spirit of the invention. For instance, Apple Mac OS® environmentapplications are used to create some of these examples, a person ofordinary skill in the art would realize that the invention may bepracticed in other operating environments such as Microsoft Windows®,UNIX, Linux, etc., and other applications such as games, without the useof these specific details. Also, some of the examples may be executed ona GPU or CPU of a computer system depending on the computing resourcesavailable on the computer system or alternatively on any electronicdevice that is able to view images. Thus, one of ordinary skill in theart would understood that the invention is not to be limited by theforegoing illustrative details, but rather is to be defined by theappended claims.

1. A non-transitory computer readable medium storing a computer programfor directing a simulated camera in a three-dimensional simulated space,said computer program comprising sets of instructions for: receiving acommand to associate said simulated camera with an object in saidsimulated space for a set duration; determining, based on said command,a path along which the simulated camera moves over said duration, saidmoving comprising: moving said simulated camera from a first positionand an orientation that does not aim at the object to a second positionnear said object while aiming said simulated camera at said object; andmoving said simulated camera with said object; and creating a video fromsaid simulated camera's perspective of said three-dimensional simulatedspace.
 2. The non-transitory computer readable medium of claim 1,wherein moving said simulated camera to said second position near saidobject comprises moving said simulated camera through saidthree-dimensional simulated space to a location and orientation whereinsaid simulated camera points at a particular side of said object at adistance such that said object fills a particular portion of saidsimulated camera's field of view.
 3. The non-transitory computerreadable medium of claim 1, wherein moving said simulated camera withsaid object comprises determining a path for moving said simulatedcamera such that said camera's view of said object does not change whilesaid object moves on a pre-determined path in said three-dimensionalsimulated space for at least part of the set duration.
 4. Thenon-transitory computer readable medium of claim 1, wherein said objectis a first object and said path is a first path, wherein said computerprogram further comprises a set of instructions for determining a secondpath for moving said simulated camera to a location and orientationwherein said simulated camera points at a particular side of a secondobject at a distance such that said second object fills a particularportion of said simulated camera's field of view.
 5. The non-transitorycomputer readable medium of claim 1, wherein said computer programfurther comprises a set of instructions for receiving adjustments tosaid path by a user.
 6. The non-transitory computer readable medium ofclaim 1, wherein said object has a set of axes that define itsorientation and moving said simulated camera to said second positionnear said object while aiming said simulated camera at said objectcomprises pointing said simulated camera at said object along a specificdirection relative to said set of axes.
 7. The non-transitory computerreadable medium of claim 6, wherein moving said simulated camera to saidsecond position near said object while aiming said simulated camera atsaid object further comprises positioning said simulated camera so thatthe camera (i) points in the same direction as an axis of said objectand (ii) is a distance away from said object such that said object fillsa particular portion of said camera's field of view.
 8. Thenon-transitory computer readable medium of claim 7, wherein moving saidsimulated camera to said second position near said object and aimingsaid simulated camera at said object further comprises positioning saidsimulated camera such that an up direction of said simulated camera'sfield of view corresponds to an up direction of said object.
 9. Thenon-transitory computer readable medium of claim 1, wherein saidcomputer program further comprises a set of instructions for receiving atime setting that defines a starting time and a duration for moving saidsimulated camera to said object.
 10. The non-transitory computerreadable medium of claim 1, wherein said computer program furthercomprises a set of instructions for receiving a first time setting thatdefines a start time and a duration for moving said simulated camera tosaid object while aiming said simulated camera at said object and asecond time setting that defines a start time and a duration for movingsaid simulated camera with said object.
 11. The non-transitory computerreadable medium of claim 10, wherein said object is a first object andsaid computer program further comprises a set of instructions forreceiving a third time setting that defines a starting time and aduration for moving said simulated camera to a second object.
 12. Amethod for providing a video compositing application for execution by acomputer, the method comprising: providing a first tool for selecting avirtual camera that renders a computer generated scene from a particularlocation and orientation; providing a second tool for specifying aparticular object in the computer generated scene to associate with saidvirtual camera, wherein the computer generated scene contains aplurality of objects the location and orientation of which areuser-adjustable within the scene; and providing a third user-adjustabletool for specifying a duration during which the particular object willbe associated with said virtual camera, wherein said association causesthe camera to keep the particular object in a field of view of thevirtual camera during said duration.
 13. The method of claim 12, whereinsaid association further causes the virtual camera to move to place theparticular object in said field of view of said virtual camera.
 14. Themethod of claim 13 further comprising providing a fourth tool forspecifying a fraction of said duration for placing said particularobject in said field of view.
 15. The method of claim 12 furthercomprising providing a tool for selecting a fraction of said durationduring which the virtual camera moves away from the particular object.16. The method of claim 12, wherein said tool for specifying theparticular object to associate with said camera is for associatingmultiple objects with said camera.
 17. A computing device comprising amemory and a graphical user interface (GUI), said GUI comprising: adisplay area for displaying first and second simulated objects and avirtual camera in a computer generated three-dimensional space; a firstcontrol for associating with the virtual camera (i) a first behavior tocause the virtual camera to follow the first object over a first timeduration and (ii) a second behavior to cause the virtual camera tofollow the second object over a second time duration; a second controlfor specifying the first time duration and the second time duration; anda third control for starting a rendering operation for generating avideo clip that comprises a view from the virtual camera of the firstobject during the first time duration and a view from the virtual cameraof the second object during the second time duration subsequent to thefirst time duration.
 18. The computing device of claim 17, wherein saidGUI comprises a control for setting a magnitude of an effect of thefirst behavior on said virtual camera over the first time duration. 19.The computing device of claim 18, wherein said GUI further comprises acontrol for setting the first behavior to change in a non-linear mannerover said first time duration.
 20. The computing device of claim 19,wherein said GUI further comprises a control for setting the firstbehavior to ramp up over part of said first time duration.
 21. Thecomputing device of claim 20, wherein the control for setting themagnitude is further for setting a magnitude of an effect of the secondbehavior, the control for setting the first behavior to change in anon-linear manner is further for setting the second behavior to changein a non-linear manner over the second time duration, and the controlfor setting the first behavior to ramp up is further for setting thesecond behavior to ramp up over part of the second time duration. 22.The computing device of claim 17, wherein the first behavior changes atleast two parameters of said virtual camera.
 23. The computing device ofclaim 22, wherein said GUI further comprises (i) a tool for setting atime duration for ramping up changes by the first behavior to a firstparameter over a first fraction of said time duration and (ii) a toolfor ramping up changes by said first behavior to a second parameter overa second fraction of said time duration.
 24. The computing device ofclaim 17, wherein said first behavior causes the virtual camera torotate about a specified axis through said virtual camera.
 25. Thecomputing device of claim 17, wherein said first behavior causes saidvirtual camera to revolve about a specified point while said camerarotates to face said point.
 26. For a virtual camera that renders aportion of a computer generated three dimensional scene including atleast first, second, and third objects, a method comprising: receiving aselection of a behavior for the virtual camera to track the first objectthrough the three dimensional scene; receiving a duration for thereceived behavior during which the virtual camera tracks the firstobject, wherein the virtual camera takes a path through the scenebetween the second and third objects in order to track the first object;and rendering the scene from a perspective of the virtual camera duringthe duration as the virtual camera tracks the first object.
 27. Themethod of claim 26, wherein the computer generated three dimensionalscene includes fourth and fifth objects and the virtual camera takes apath through the scene between the fourth and fifth objects in order toapproach the first object before tracking the first object.
 28. Themethod of claim 26, wherein the received behavior affects a set ofcapture parameters of the virtual camera as the virtual camera tracksthe first object, the capture parameters comprising the location,orientation, and field of view of the virtual camera.
 29. The method ofclaim 26, wherein the behavior is a first behavior, the method furthercomprising receiving a selection of a second behavior for the virtualcamera to track the second object through the three dimensional scene.30. The method of claim 29, wherein the path through the scene is afirst path and after completing the first path the virtual camera takesa second path through the scene in order to track the second object. 31.The method of claim 26, wherein rendering the scene comprises renderingat a user-adjustable level of detail.